package org.zoomdev.zoom.aop.factory;

import org.zoomdev.zoom.aop.ProxyObject;
import org.zoomdev.zoom.common.exceptions.ZoomException;

public class MyInterfaceImpl implements TestAsmProxyFactory.MyInterface {

    private Object $_cfg_0;

    private ProxyObject $_obj;


    @Override
    public Integer add(int a, Integer b) {
        try {
            Object ret = $_obj.invoke($_cfg_0, new Object[]{a, b});
            if (ret == null) {
                return 0;
            }
            return (Integer) ret;
        } catch (Throwable e) {
            throw new ZoomException(e);
        }

    }

    @Override
    public Integer sub(int a, Integer b) {
        return null;
    }

    @Override
    public void sum() {

    }
}
